Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #297

Merged
merged 6 commits into from
Nov 18, 2020
Merged

Add Dockerfile #297

merged 6 commits into from
Nov 18, 2020

Conversation

marema31
Copy link
Contributor

Creating a docker image

@marema31 marema31 force-pushed the Dockerfile branch 2 times, most recently from 167da3d to 668d3c1 Compare November 10, 2020 23:40
@nqb
Copy link
Contributor

nqb commented Nov 11, 2020

Hello @marema31,

Thanks for your PR. It will be interesting to be able to start a Docker image with a specific version of Venom.

@yesnault
Copy link
Member

Hi @marema31 ,

Before making a release, we do a lot of testing to get the most stable version possible.

We don't want to promote the master branch as a stable branch for 'production' use. The master branch can contain some breaking changes, it's not a good idea to run venom as is, without knowing which changes can break your existing tests.

Here, a dockerfile with the latest release:

FROM debian:buster-slim

RUN apt-get update && \
    apt-get install -y curl unixodbc && \
    rm -rf /var/lib/apt/lists/*

RUN LAST_RELEASE=$(curl -s https://api.github.com/repos/ovh/venom/releases | grep tag_name | head -n 1 | cut -d '"' -f 4) && \
    todl=$(curl -s https://api.github.com/repos/ovh/venom/releases | grep ${LAST_RELEASE} | grep browser_download_url | grep -E 'venom.linux-amd64' | cut -d '"' -f 4) && \
    curl -s $todl -L -o /opt/venom && \
    chmod +x /opt/venom

ENTRYPOINT ["/opt/venom" ]

CMD [ "run", "--output-dir", "/outputs"]

And we will provide official image on docker hub for the next release.

Dockerfile Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
marema31 and others added 3 commits November 13, 2020 13:43
Signed-off-by: Marc Carmier <mcarmier@gmail.com>
Signed-off-by: Marc Carmier <mcarmier@gmail.com>
Sure, if it respect your release cycle, it should be done like this

Co-authored-by: Yvonnick Esnault <yvonnick@esnau.lt>
Signed-off-by: Marc Carmier <mcarmier@gmail.com>
marema31 and others added 2 commits November 14, 2020 22:26
Signed-off-by: Marc Carmier <mcarmier@gmail.com>
README.md Outdated Show resolved Hide resolved
@fsamin fsamin merged commit d0edc92 into ovh:master Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants